﻿using AutoMapper;
using Webshop20.Application.DataTransferObjects;
using Webshop20.Application.Operations.Messages;
using Webshop20.Domain.Catalog.Core.Products;
using Webshop20.Domain.Customers.Core;
using Webshop20.Domain.Customers.Services.DataTransferObjects;
using Webshop20.Domain.Security.Authentication.Core;
using Webshop20.Domain.Shared.Products.Core;
using Webshop20.Domain.Catalog.Core;

namespace Webshop20.Application.Mappings
{
    public class MappingConfiguration
    {
        public MappingConfiguration()
        {
            Mapper.CreateMap<Account, NewRegistrationDTO>();
            Mapper.CreateMap<Customer, NewRegistrationDTO>();
            Mapper.CreateMap<Product, ProductDTO>();
            Mapper.CreateMap<CustomerInformationDTO, Visitor>();
            Mapper.CreateMap<UpdateTransientNewRegistrationDataRequest, NewRegistrationDTO>();
            Mapper.CreateMap<ShoppingCartItem, CartItemDTO>();
            Mapper.CreateMap<Customer, CustomerDTO>();
            Mapper.CreateMap<Customer, CustomerInformationDTO>();
            Mapper.CreateMap<Adress, CustomerDTO>();
        }
    }
}
